package com.bdyc.dao;

import com.bdyc.controller.custom.OrderGroup;
import com.bdyc.controller.custom.OrderInfoPo;
import com.bdyc.po.OrderInfo;
import com.bdyc.po.OrderInfoExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface OrderInfoMapper {
    int countByExample(OrderInfoExample example);

    int deleteByExample(OrderInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    List<OrderInfo> selectByExample(OrderInfoExample example);

    OrderInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OrderInfo record, @Param("example") OrderInfoExample example);

    int updateByExample(@Param("record") OrderInfo record, @Param("example") OrderInfoExample example);

    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);
    //查询获取总记录数
	Integer findOrderInfoListCount(@Param("map")  Map<String, Object> sendMap);
	//分页查询
	List<OrderInfoPo> findOrderInfoList(@Param("map") Map<String, Object> map);
	//分组查询flag
	List<OrderGroup> groupFlag();
	//分组查询status
	List<OrderGroup> groupStatus(@Param("flag") Integer flag);
}